import request from '@/utils/request'
// 新建编辑普通商品分销
export function addNewProductDistribution(data) {
    return request({
      url: '/adminapi/retail/v2/activity/save',
      method: 'post',
      data
    })
}
//普通商品分销列表
export function getInviteActivityList(data) {
    return request({
      url: '/adminapi/retail/v2/activity/list',
      method: 'post',
      data
    })
}
//普通商品分销详情
export function getInvitedetail(data) {
    return request({
      url: '/adminapi/retail/v2/activity/detail',
      method: 'post',
      data
    })
}
//普通商品分销删除
export function getInvitedelete(data) {
    return request({
      url: '/adminapi/retail/v2/activity/delete',
      method: 'post',
      data
    })
}
//普通商品分销修改状态
export function getInvitestatus(data) {
    return request({
      url: '/adminapi/retail/v2/activity/status',
      method: 'post',
      data
    })
}

//供货商商品分销列表
export function getInviteSupplierList(data) {
  return request({
    url: '/adminapi/retail/v3/getList',
    method: 'post',
    data
  })
}
// 新建编辑供货商商品分销
export function addNewSupplier(data) {
  return request({
    url: '/adminapi/retail/v3/save',
    method: 'post',
    data
  })
}

//供货商商品分销详情
export function getSupplierdetail(data) {
  return request({
    url: '/adminapi/retail/v3/detail',
    method: 'post',
    data
  })
}
//供货商商品分销删除
export function getSupplierdelete(data) {
  return request({
    url: '/adminapi/retail/v2/activity/delete',
    method: 'post',
    data
  })
}
//供货商商品分销修改状态
export function getSupplierstatus(data) {
  return request({
    url: '/adminapi/retail/v3/updateStatus',
    method: 'post',
    data
  })
}
//普通商品记录
export function getordinorylisy(data) {
  return request({
    url: '/adminapi/retail/v2/activity/record',
    method: 'post',
    data
  })
}
//供货商商品记录
export function getorSupplisy(data) {
  return request({
    url: '/adminapi/retail/v3/record',
    method: 'post',
    data
  })
}